import request from "@/utils/request"

// 获取考试列表
export const listExam = (params = {}) => { return request.get('/business/exam/list', { params }) }
// 获取考试资料详情
export const getExamById = (params) => { return request.get(`/business/exam/${params}`) }
// 删除考试资料
export const deleteExam = (params) => { return request.delete('/business/exam', { data: params }) }
// 修改获取考试资料
export const updateExam = (params = {}) => { return request.put(`/business/exam`, params) }
// 新增考试资料
export const addExam = (params = {}) => { return request.post('/business/exam', params) }
// 获取考试链接
export const getExamLink = (params) => { return request.get(`/business/exam/generate`, params) }